package com.hq.ims.data.utils;

import com.hq.authority.utils.AppUtils;

/**
 * web中获取参数
 * <p>
 * jbp
 */
public class AppUtilsExpand {

    /**
     * 当前登陆用户是否Admin
     */
    public static boolean loginUserIsAdmin() {
        return accountUserIsAdmin(AppUtils.getAccount());
    }

    /**
     * 账号是否Admin
     */
    public static boolean accountUserIsAdmin(String account) {
        return LocalConstant.ADMIN_ACCOUNT.equals(account);
    }

}
